<template>
  <CommonCard title="今日销售额" value="303,467,99">
    <div class="compare-wrap">
      <div class="compare">
        <span>日同比</span>
        <span class="emphasis">-19.16%</span>
        <span class="decrement"></span>
      </div>
      <div class="compare">
        <span>月同比</span>
        <span class="emphasis">56.67%</span>
        <span class="increment"></span>
      </div>
    </div>
    <template #footer>
      <span>昨日销售额</span>
      <span class="emphasis">￥360,000,000</span>
    </template>
  </CommonCard>
</template>

<script lang="ts">
import CommonCard from "./CommonCard.vue";
export default {
  name: "TodaySales",
  components: {
    CommonCard,
  },
};
</script>

<style lang="scss" scoped>
.compare-wrap{
  height: 100%;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  display: flex;
  flex-direction: column;
  .compare{
    flex: 1;
    display: flex;
    align-items: center;
  }
 
}
</style>